package com.study.model.jdao.PSIjdao;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.study.model.pojo.PSIpojo.PurchaseOrder;

/**
 * 采购表
 * @author CLY
 *
 */
@Repository
public interface PurchaseOrderDao extends CrudRepository<PurchaseOrder, String>{
	//根据id查
	public PurchaseOrder findByPurorderid(String purorderid);
	
	/*@Modifying
	@Query("UPDATE purchase_order SET purstate=2 WHERE purorderid in (:ids) ")
	public int updateMoreState(List<Integer> ids);*/
	
	/*
	public PurchaseOrder findAllById(String purorderid);*/
}
